package ${sourceBasePackage}.model<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.jxdinfo.hussar.platform.core.base.entity.BaseEntity;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.util.Date;
import java.math.BigDecimal;

/**
 * ${description}实体类
 *
 * @author ${author}
 * @since ${createDate}
 */
@Alias("${entityName}")
@TableName("${tableName}")
@Data
public class ${entityName} implements BaseEntity {

	private static final long serialVersionUID = 1L;

	<#list fields as po>
	<#if po.primaryKey == 'Y'>
    /**
    * ${po.description}
    */
    @TableId("${po.fieldName}")
    private ${po.propertyType} ${po.propertyName};
    <#else>
    /**
     * ${po.description}
     */
    @TableField("${po.fieldName}")
	private ${po.propertyType} ${po.propertyName};
	</#if>
	</#list>

}
